package com.hnyc.domain;

import java.util.Date;

/**
 * 用户和角色关联 sys_user_role
 * 
 * @author ruoyi
 */
public class CandUserRole
{

    /**
     * 用户和角色关联 id
     */
    private Long id;

    /**
     * 角色id
     */
    private Long roleId;

    /** 用户ID */
    private Long userId;

    /** 创建时间 */
    private Date createdAt;

    /** 更新时间 */
    private Date updatedAt;

    /** 状态 0 停用 1 正常 */
    private int status;

    public CandUserRole() {
    }

    public CandUserRole(Long id, Long roleId, Long userId, Date createdAt, Date updatedAt, int status) {
        this.id = id;
        this.roleId = roleId;
        this.userId = userId;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
        this.status = status;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "CandUserRole{" +
                "id=" + id +
                ", roleId=" + roleId +
                ", userId=" + userId +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                ", status=" + status +
                '}';
    }
}
